package com.geely.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class ShiftChange extends Model<ShiftChange> 
{
	public static final ShiftChange dao = new ShiftChange();
	
	public List<ShiftChange> getAllShiftChange()
	{
		return ShiftChange.dao.find("select * from shiftChange");
	}
	
	public List<ShiftChange> Query(String date)
	{
		List<ShiftChange> shiftChange = ShiftChange.dao.find("select * from record where date=?",date);
		return shiftChange;
	}
	
	public List<ShiftChange> getShiftChangeDetail(int id)
	{
		return ShiftChange.dao.find("select * from shiftChange where id=?",id);
	}
	
}
